#include "sf_bplustree.h"
#include <stdio.h>
#include <stdlib.h>


int tree_size = 5;




// create a new tree node
tree_node *create_tree_node(int value) {

  tree_node *node;
 // node = malloc(sizeof(tree_node));//sizeof structure tree_node
  node->parent_ptr = NULL;
  node->next_ptr = NULL;
  node->is_tree_leaf = 0; // not leaf because we are creating common node
  node->key_numbers = 0;


  // NULL pointer to work need to add stdio.h header
  if (node == NULL) {
  
  }
  // need uncomment, malloc does not work when compile using makefile
 // node->keys_ptr = malloc( (tree_size - 1) * sizeof(int) );
  if (node->keys_ptr == NULL) {
  
  }
  //node->ptrs = malloc( tree_size * sizeof(void *) );
  if (node->ptrs == NULL) {
    
  
  }

  return node;
}

/*
tree_node *create_tree_leaf(int value ) {

  tree_node *leaf = create_tree_node();
  //leaf->is_tree_leaf = 1;

  return leaf;
}
*/
